<template>
  <vantage1 v-if="flage"></vantage1>
  <vantage v-if="!flage"></vantage>
</template>

<script>
import vantage1 from "../components/vantage1.vue"
import vantage from "../components/vantage.vue"
export default {
  components:{
  vantage1,
  vantage
},
  data() {
    return {
      flage:this.$store.state.check
    }
  },
  watch:{
    "$store.state.check": {
      handler: function (newValue, oldValue) {
        this.flage = newValue
      },
    }
  },
  methods:{

  },
  mounted(){
   
  }
}
</script>

<style scoped>

</style>